package com.erp.erp_dao.Blueprint;

import com.erp.erp_entitys.Blueprint.BlueprintEntity;
import com.erp.erp_entitys.Blueprint.BlueprintFileEntity;
import com.erp.erp_entitys.Blueprint.BlueprintProductEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IBlueprintDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(BlueprintEntity record);

    int insertSelective(BlueprintEntity record);

    BlueprintEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlueprintEntity record);

    int updateByPrimaryKey(BlueprintEntity record);

    List<BlueprintEntity> selectByPage(Map<String,String> map);

    List<BlueprintEntity> selectBlueprintList(Map<String,Object> map);

    BlueprintProductEntity selectProduct(Integer bId);

    BlueprintFileEntity selectFile(Integer bId);

    BlueprintEntity selectInfoById(Integer id);

    int updateBoxStatusBykey(Map<String,Object> map);

    List<BlueprintEntity> selectByIdList(@Param("idList") List<String> idList);

    int updateBoxStatus(List<BlueprintEntity> list);

    int deleteByIdList(@Param("idList") List<String> idList);

    List<BlueprintEntity> isExist(String number);

    int getCountNum();
}